import { Component, OnInit } from '@angular/core';
import { Service } from '../../server/server';

@Component({
  selector: 'app-noauthority',
  templateUrl: './noauthority.component.html'
})
export class NoauthorityComponent implements OnInit {

  constructor(private server:Service) { }

  public isActive= this.server.isActive;
  ngOnInit() {
    this.server.eventEmit.subscribe((value: any) => {
      this.isActive=value;
    });
  }

}
